<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>v-if</title>
    <script src="../../js/vue3.js"></script>
    <style>
        #app {
            margin: 2rem auto;
            width: 50%;
            text-align: center;
        }   
        p {
            font-size: 1.5rem;
            font-weight: bold;
        }
    </style>
</head>

<body>
    <div id="app"> 
        <p><input type="text" v-model.num="str"></p>
            <div v-if="str>90">优秀</div>
            <div v-else-if="str>80">良好</div>
            <div v-else-if="str>60">一般</div>
            <div v-else>不合格</div>
    </div>
    <script>
        const v_app = Vue.createApp({
            data() {
                return {
                    str:0,
                }
            },
            methods: {
               
            },
        });
        v_app.mount("#app");
    </script>
</body>

</html>